<?php 
$i1=$i2=$i3=$i4=$i5=$i6='';
	switch ($active)
	{
		case 'i2':
			$i2 = 'class="active"';
			break;
		case 'i3':
			$i3 = 'class="active"';
			break;
		case 'i4':
			$i4 = 'class="active"';
			break;
		case 'i5':
			$i5 = 'class="active"';
			break;
		case 'i6':
			$i6 = 'class="active"';
			break;
		default:
			$i1 = 'class="active"';
			break;
	}
?>
<script type="text/javascript">

ddsmoothmenu.init({
	mainmenuid: "smoothmenu2", //Menu DIV id
	orientation: 'v', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu-v', //class added to menu's outer DIV
	//customtheme: ["#804000", "#482400"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})

</script>

<div id="smoothmenu2" class="ddsmoothmenu-v">
<ul>
<li><a <?php echo $i1;?> href="<?php echo Yii::app()->params['site_url'];?>">Trang chủ</a></li>
<li><a <?php echo $i2;?> href="<?php echo Yii::app()->createUrl('/site_frontend/index/pagex', array('alias'=>'gioi-thieu'));?>">Giới thiệu</a></li>
<li><a <?php echo $i3;?> href="<?php echo Yii::app()->createUrl('/site_frontend/index/category', array('alias'=>'tin-tuc'));?>">Tin tức</a>
  <ul>
  <li><a href="<?php echo Yii::app()->createUrl('/site_frontend/index/category', array('alias'=>'bao-tri'))?>">Bảo trì</a></li>
  <li><a href="<?php echo Yii::app()->createUrl('/site_frontend/index/category', array('alias'=>'su-kien'))?>">Sự kiện</a></li>
  </ul>
</li>
<li><a <?php echo $i4;?> href="#">Diễn đàn</a></li>
<li><a <?php echo $i5;?> href="#">Hướng dẫn</a></li>
<li class="last"><a <?php echo $i6;?> href="#">Hỗ trợ</a></li>
</ul>
<br style="clear: left" />
</div>
